{include file="header.tpl"}

<div class="main">
    {foreach from=$projects item="project"}
    <div class="box w100">
        <div class="box-c">
            <em class="ctl"><b>&bull;</b></em>
            
            <div style="float: right; position:absolute; right: 0;">
                <em class="cti"><b>&bull;</b></em>
                <div style="float: left; background-color: #C6D9E9; color: white;">
                <a href="/projects/edit/{$project->id}" class="edit tooltip" title="Редактировать информацию о проекте"></a>&nbsp;&nbsp;|&nbsp;&nbsp;
                <a href="/projects/delete/{$project->id}" class="delete tooltip" title="Удалить проект"></a>&nbsp;&nbsp;|&nbsp;&nbsp;
                <a href="/projects/close/{$project->id}" class="accept tooltip" title="Закрыть"></a>
                </div>
            </div>
            <em class="ctr"><b>&bull;</b></em>
        </div>

        <div class="box-inner">
            <table width="100%">
            <tr>
            <td width="1%"><img src="/media/images/class_big.gif" style="max-width:100px; max-height: 100px; padding: 5px" /></td>
            <td>
            <h4><a href="/projects/view/{$project->name}">{$project->title}</a></h4>
            {$project->description}
            {if $project->state == 0}
            <h1>Closed</h1>
            {/if}
            </td>
            </tr>
            </table>
        
       </div>
        
        <div class="box-c">
            <em class="cbl"><b>&bull;</b></em>
            <em class="cbr"><b>&bull;</b></em>
        </div>
    </div>
    {/foreach}
</div>


{include file="footer.tpl"}